package Spring;
import Spring.example.LoginService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Demo1Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext  context =
                SpringApplication.run(Demo1Application.class,args);
        LoginService loginService=context.getBean(LoginService.class);
        loginService.login();
    }

}
